package com.ruoyi.project.system.interact.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 绘声绘影动态对象 dj_graphic_dynamic
 * 
 * @author ruoyi
 * @date 2023-11-20
 */
public class DjGraphicDynamic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 动态标题 */
    @Excel(name = "动态标题")
    private String title;

    /** 动态内容 */
    @Excel(name = "动态内容")
    private String content;

    /** 发布者 */
    @Excel(name = "发布者")
    private String publisher;

    /** 发布者头像 */
    @Excel(name = "发布者头像")
    private String avatar;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;

    /** 审核状态(0待审核 1已通过 2已拒绝) */
    @Excel(name = "审核状态", readConverterExp = "0=待审核,1=已通过,2=已拒绝")
    private String auditFlag;

    /** 浏览次数 */
    @Excel(name = "浏览次数")
    private Long viewCount;

    /** 点赞次数 */
    @Excel(name = "点赞次数")
    private Long likeCount;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 动态分类 */
    @Excel(name = "动态分类")
    private String category;

    /** 是否公开(0私有 1公开) */
    @Excel(name = "是否公开", readConverterExp = "0=私有,1=公开")
    private String isPublic;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }
    public void setAuditFlag(String auditFlag) 
    {
        this.auditFlag = auditFlag;
    }

    public String getAuditFlag() 
    {
        return auditFlag;
    }
    public void setViewCount(Long viewCount) 
    {
        this.viewCount = viewCount;
    }

    public Long getViewCount() 
    {
        return viewCount;
    }
    public void setLikeCount(Long likeCount) 
    {
        this.likeCount = likeCount;
    }

    public Long getLikeCount() 
    {
        return likeCount;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setIsPublic(String isPublic) 
    {
        this.isPublic = isPublic;
    }

    public String getIsPublic() 
    {
        return isPublic;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("publisher", getPublisher())
            .append("avatar", getAvatar())
            .append("publishTime", getPublishTime())
            .append("auditFlag", getAuditFlag())
            .append("viewCount", getViewCount())
            .append("likeCount", getLikeCount())
            .append("delFlag", getDelFlag())
            .append("category", getCategory())
            .append("isPublic", getIsPublic())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
} 